<style> .float-left{ float:left;} </style>




<article id="item-<?php the_ID(); ?>" class="item" data-permalink="<?php the_permalink(); ?>">

    <header></header>	

	<div class="content clearfix">
    
  
<?php if($_REQUEST['s']){ 
?>


<div style="height:170px;"> 
<h1 class="title" style="font-size:20px;"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
		
<?php the_excerpt(''); ?>
        
<p class="links">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php _e('Continue Reading', 'warp'); ?> </a>
</p> 

</div>



<?php
}else{
?>    
  
<h1 class="title" style="font-size:26px;"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>  

<p class="meta">
			<?php 
				$date = '<time datetime="'.get_the_date('Y-m-d').'" pubdate>'.get_the_date().'</time>';
				printf(__('Written by %s on %s. Posted in %s', 'warp'), '<a href="'.get_author_posts_url(get_the_author_meta('ID')).'" title="'.get_the_author().'">'.get_the_author().'</a>', $date, get_the_category_list(', '));
			?>
		</p>
        
          <?php if (has_post_thumbnail() && !$_REQUEST['s']): ?>
		<?php
		$width = get_option('thumbnail_size_w'); //get the width of the thumbnail setting
		$height = get_option('thumbnail_size_h'); //get the height of the thumbnail setting
		?>
		<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(array($width, $height), array('class' => 'size-auto float-left')); ?></a>
	<?php endif; ?>
    
<?php the_excerpt(''); ?>	
        
 <p class="links">
  <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php _e('Continue Reading', 'warp'); ?> </a> &nbsp; &nbsp; <?php if(comments_open()) comments_popup_link(__('No Comments', 'warp'), __('1 Comment', 'warp'), __('% Comments', 'warp'), "", ""); ?>
 </p>

 <?php edit_post_link(__('Edit this post.', 'warp'), '<p class="edit">','</p>'); ?>
 <?php } ?>
</div>
	

</article>